﻿
@{
    ViewBag.Title = "用户管理";
    Layout = "~/Areas/BMS/Views/Shared/_Layout.cshtml";
}

<div class="nav-bar">用户管理 > 用户管理</div>
<div class="container-fluid p-t-15">
    <div class="row">
        <div class="col-lg-12">

            <div class="card">
                <header class="card-header">
                    <div id="toolbar" class="toolbar-btn-action">
                        <button id="btnAdd" type="button" class="btn btn-primary m-r-5">
                            <span class="mdi mdi-plus" aria-hidden="true"></span>新增
                        </button>
                        <button id="btnDel" type="button" class="btn btn-danger m-r-5">
                            <span class="mdi mdi-window-close" aria-hidden="true"></span>批量删除
                        </button>
                    </div>
                    <div class="page-loading btn"></div>
                </header>
                <div class="card-body">
                    <div class="toolbar-btn-action">
                        <form onsubmit="return false">
                            <div class="form-group form-row">
                                <div class="col-auto">
                                    <select id="searchType" class="form-control">
                                        <option value="0">Uid</option>
                                        <option value="1">用户名</option>
                                        <option value="2">手机号</option>
                                        <option value="3">邮箱</option>
                                        <option value="4">昵称</option>

                                    </select>
                                </div>
                                <div class="col-auto">
                                    <input type="text" class="form-control" id="searchText" placeholder="输入查询内容...">
                                </div>
                                <div class="col-auto">
                                    <button id="btnSearch" type="button" class="btn btn-info"><span class="mdi mdi-find-replace" aria-hidden="true"></span> 查询</button>
                                </div>
                            </div>
                        </form>
                    </div>
                    <table id="table" class="table min-table-size"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<!--新增用户模态框层-->
<div class="modal fade" id="addDialogModal" tabindex="-1" role="dialog" aria-labelledby="addDialogModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h6 class="modal-title" id="addDialogModalTitle">新增用户</h6>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <form id="form">
                    <input type="hidden" id="id" value="0" />
                    <div class="form-group">
                        <label for="account">账号</label>
                        <input type="text" class="form-control" id="account" name="account" placeholder="账号">
                    </div>
                    <div class="form-group">
                        <label for="name" class="col-form-label">手机号</label>
                        <input type="text" class="form-control" id="phone" name="phone" placeholder="手机号">
                    </div>
                    <div class="form-group">
                        <label for="url" class="col-form-label">邮箱</label>
                        <input type="text" class="form-control" id="email" name="email" placeholder="邮箱">
                    </div>
                    <div class="form-group">
                        <small class="form-text text-muted">
                            *新增的用户默认密码为888888
                        </small>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="btnSave">保存</button>
            </div>
        </div>
    </div>
</div>

